<template>
  <div id="iconNav">
    <van-grid :border="false" :column-num="5">
      <van-grid-item v-for="(item, i) of icon" :key="i" @click="skip(item.herf)">
        <van-image
          :src="`${baseURL}/jd_card/index/log2/${item.img}`"
        />
        <p style="font-size: 12px">{{ item.iname }}</p>
      </van-grid-item>
    </van-grid>
  </div>
</template>
<script>
export default {
  data() {
    return {
      icon: {
        0: { iname: "电子卡", img: "log-1.png", herf: "home" },
        1: { iname: "使用帮助", img: "log-2.png", herf: "home" },
        2: { iname: "卡券超市", img: "log-3.png", herf: "home" },
        3: { iname: "企业团购", img: "log-4.png", herf: "home" },
        4: { iname: "购卡章程", img: "log-5.png", herf: "home" },
      },
    };
  },
  methods: {
    skip(herf) {
      this.$router.push(`/${herf}`);
    },
  },
};
</script>
<style lang="scss" scoped>
.van-grid {
  .van-grid-item {
    .van-grid-item__content {
      p {
        margin-bottom: 0;
      }
    }
  }
}
</style>